package com.dam.controller;


import com.dam.common.Result;
import com.dam.service.AlgTypeService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author dam
 * @since 2021-11-07
 */
@RestController
@RequestMapping("algorithm/algType")
public class AlgTypeController {

    @Autowired
    AlgTypeService algTypeService;

    @ApiOperation("获取所有身份")
    @GetMapping("/getAllAlgTypes")
    public Result getAllRoles() {
        return Result.ok().data("allAlgTypes", algTypeService.list());
    }

}
